package com.zhijian.warehouse.manage.enums;

import com.zhijian.warehouse.manage.config.Constants;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author HCG
 * @version 1.0
 * @date 2022/5/29
 */
@AllArgsConstructor
@Getter
public enum SystemEnum {

    WEB("后台管理系统", Constants.WEB_AUTHORIZATION, "%s%s:login:token", "%s:login:user", "", "", "", 60 * 60 * 24 * 7),
    H5("H5端", Constants.H5_AUTHORIZATION, "%s%s:h5:token", "%s:h5:user", "", "", "", 60 * 60 * 24 * 30),
    MP("小程序端", Constants.MP_AUTHORIZATION, "%s%s:mp:token", "%s:mp:user", "wx97824819e92144f9", "49142ebefb0f28577c9ce4a3265fb49c", "mini:program:access:token", 60 * 60 * 24 * 7),;

    private String name;
    private String tokenKey;
    private String loginTokenKey;
    private String userKey;

    private String appId;

    private String appSecret;

    private String miniProgramAccessTokenKey;

    /**
     * 用户登陆过期时间
     */
    private int loginExpireTime;
}
